<?php
class Form_Checkout extends Zend_Form
{
	public function init()
	{
		

// 		$this->setAction('payment');
		$this->setMethod('post');
		$this->setAttrib('sitename', 'Foodies');
			
		$this->addElement('text', 'fullname');
		$fullnameElement = $this->getElement('fullname');
		$fullnameElement->setLabel('Full Name:');
			
			
		$this->addElement('text', 'email');
		$emailElement = $this->getElement('email');
		$emailElement->setLabel('Email:');
		
		$this->addElement('text', 'phone');
		$phoneElement = $this->getElement('phone');
		$phoneElement->setLabel('Phone Number:');

	$this->addElement('radio', 'checkout_type');
 		$checkout_typeElement = $this->getElement('checkout_type');
 		$checkout_typeElement->setLabel('Type of Check out:');
 		
		$checkout_typeElement->addMultiOptions(array(
 			'cod'=>' Check out at home (COD)', 
 			'atm'=>' Check out by credict card (ATM)'))
 			->setSeparator('<br>');

		
		
		$this->addElement('button', 'submit');
		$submitButton = $this->getElement('submit');
		$submitButton->setLabel('Continue');
		$submitButton->setAttrib('class', 'button');
		$submitButton->setAttrib('id', 'checkoutButton');

	}
}
?>